package ipt.capitulo12.fila3;

public abstract class Avion implements Ordenable{

	/**
	 * @param args
	 */
	int alas=5, cola=15, j=0;
	public int getValor() { return alas + cola; }

	public void ordena(Ordenable[] array){
		for (int i=0; i < array.length - 1; i++)
			for (j=i+1; j < array.length; j++)
				if (array[j].getValor() < array[i].getValor()){
					Ordenable temp = array[i];
					array[i] = array[j];
					array[j] = temp;
					}
		}

}
